package top.guxx.springframework.beans.factory.support;

import top.guxx.springframework.beans.BeansException;
import top.guxx.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @Author：Guxx
 * @Description：实例化接口添加必要的入参信息
 * @Date：2024/6/9 15:04
 * @Filename：InstantiationStrategy
 */
public interface InstantiationStrategy {
    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor constructor, Object[] args) throws BeansException;
}
